package com.song.cloud.config;

import org.springframework.boot.actuate.info.Info;
import org.springframework.boot.actuate.info.InfoContributor;
import org.springframework.stereotype.Component;

/**
 * @Author 宋伟宁
 * @Date 2024/1/2
 * @Version 1.0
 **/
@Component
public class MyActorator implements InfoContributor{

    @Override
    public void contribute(Info.Builder builder) {
         builder.withDetail("名称","图书的生产者")
                 .withDetail("作者","宋伟宁")
                 .withDetail("版本", "1.0.0");
    }
}
